package com.example.mobileeducationtv;

import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class StudentDatabase extends Activity{
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.student_database);
		
		DatabaseHelper db = new DatabaseHelper(this);
		List<Student> studentsList = db.getAllStudents();
		
		for(Student student : studentsList) {
			//appendMessage(message.getMessage(), message.getSender());
			String log = "Name " + student.getName() + "Number " + student.getNumber();
			Log.d("User Test", log);
		}
	}
}
